try{
	// try the original
	alert(document.getElementById('test'));
	// try with getElementById from other window
	var myWin = window.open("test.html");
	var extDoc = myWin.document;
	alert(extDoc.getElementById("test"));
	alert(extDoc.getElementById.call(document,"test"));
	// 	WORKS ! Reason:
	// 		myWin.document !== document
	// 		myWin.document.getElementById === document.getElementById
	alert(window.secret);
} catch(e) {
	alert(e.message);
}finally{
	window.close.call(myWin);
}
